﻿@model Bricks.Business.Models.Account.MenuInfo

@{
    ViewBag.Title = "编辑菜单";
    Layout = "~/Views/Shared/_UserPage.cshtml";
}

<div class="frombox datagrid-body" style="padding-bottom: 5px;">
    <form id="form-model" method="post">
        <table class="datagrid-btable" border="0" cellspacing="0" cellpadding="0" width="100%">
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">选择图标</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input id="menu-icon" name="Icon" data-options="required:true" value="@Model.Icon" />
                        <!--name需和字段名称对应-->
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">菜单名称</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="MenuName" class="easyui-textbox" data-options="required:true" value="@Model.MenuName" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">菜单编码</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="MenuCode" class="easyui-textbox" value="@Model.MenuCode" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">菜单链接</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Url" class="easyui-textbox" value="@Model.Url" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">菜单类型</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input id="MenuTypeNum" name="MenuTypeNum" class="easyui-combobox" value="@Model.MenuTypeNum" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">是否模态</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input id="Modal" name="Modal" class="easyui-combobox" value="@Model.Modal" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">弹窗宽度</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Width" class="easyui-textbox" value="@Model.Width" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">弹窗高度</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Height" class="easyui-textbox" value="@Model.Height" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">选择父级</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input id="PID" name="PID" value="@Model.PID" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">菜单描述</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Description" class="easyui-textbox" value="@Model.Description" />
                    </div>
                </td>
            </tr>
            @*<tr class="datagrid-row">
                <td colspan=2>
                    <div class="buttonGroup">
                        <input class="submitButton" type="submit" value="保存" />
                        <input class="submitButton" type="button" id="btnClose" onclick="Close();" value="关闭" />
                    </div>
                </td>
            </tr>*@
        </table>
        <input id="ID" name="ID" type="hidden" value="@Model.ID" />
        <input name="OrderNo" type="hidden" value="@Model.OrderNo" />
        <input name="IsDeleted" type="hidden" value="@Model.IsDeleted" />
        <input name="AddDate" type="hidden" value="@Model.AddDate" />
    </form>
</div>

@*<script type="text/javascript">
    function Close() {
        //$.ButtonCloseDialog("#btnClose");
        //$.EasyuiSlide("右下角弹出");
        var button = $("#btnClose");
        button.dialog('close');
        //$.ButtonCloseDialog(button);
    }
</script>*@
